﻿#ifndef DATATYPE_H
#define DATATYPE_H

#include <QObject>

enum DownloadResult
{
    DownloadSucceed,
    DownloadFailed,
};

namespace DeviceFuntionCode
{
    enum DeviceFuntionCode
    {
        ControlPoint,
        SendQueryData,
        UpdatePoint,
        DownloadFile,
        DownloadFileResult,
        LogicCloudData,
        RS485SetTime,
        ControlKNX,
    };
}

enum FileType
{
    PointFile = 1,
    ZoneConfigFile = 2,
    PluginFile = 3,
    UpdateFile = 4,
    OtherFile  =7
};

namespace ProtocolType
{
    enum ProtocolType
    {
        CloudProtocol,
        PointProtocol,
        NetPointProtocol,
        ZigbeeConfigProtocol,
        ZigbeeControlProtocol,
        ZigbeeNewControlProtocol,
        ZigbeeGWProtocol,
        GowildProtocol,
        ModbusProtocol,
        HeartBestProtocol,
        Version2Protocol,
        SWKNXProtol,
        HttpProtocol,
        WXTProtocol,

    };
}

struct SeData{
    unsigned int nRet;
    void *hEnv;
};

namespace KeyType
{
    enum KeyType
    {
        RSA,
        AES,
        M4
    };
}

#endif // DATATYPE_H




